//
//  MqFindDetailView.m
//  Meiqi
//
//  Created by lanou on 16/1/13.
//  Copyright © 2016年 KFC. All rights reserved.
//

#import "MqFindDetailView.h"

@implementation MqFindDetailView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addScrollViews];
    }
    return self;
}

- (void)addScrollViews
{
    _scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
    //_scrollView.backgroundColor = [UIColor yellowColor];
    [self addSubview:_scrollView];
    
    
    _view1 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 100)];
    //_view1.backgroundColor = [UIColor greenColor];
    [_scrollView addSubview:_view1];
    _brandPic = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, kScreenWidth /3, 80)];
    //_brandPic.backgroundColor = [UIColor redColor];
    [_view1 addSubview:_brandPic];
    
    _nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 + kScreenWidth / 3 + 10, 10,(kScreenWidth - kScreenWidth / 3 - 30), 40)];
    //_nameLabel.backgroundColor = [UIColor yellowColor];
    [_view1 addSubview:_nameLabel];
    
    _countryLabel = [[UILabel alloc] initWithFrame:CGRectMake(10 + kScreenWidth / 3 + 10, 50,(kScreenWidth - kScreenWidth / 3 - 30), 30)];
    //_countryLabel.backgroundColor = [UIColor cyanColor];
    [_view1 addSubview:_countryLabel];
    
    
    _view2 = [[UIView alloc] initWithFrame:CGRectMake(0, 110, kScreenWidth, 300)];
    //_view2.backgroundColor = [UIColor greenColor];
    [_scrollView addSubview:_view2];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, kScreenWidth - 20, 20)];
    label.text = @"简介";
    [_view2 addSubview:label];

    _locationLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 30,kScreenWidth - 20 , 30)];
    //_locationLabel.backgroundColor = [UIColor yellowColor];
    [_view2 addSubview:_locationLabel];
    
    _found_yearLabel = [[UILabel alloc] initWithFrame:CGRectMake(10,60,kScreenWidth - 20 , 30)];
    //_found_yearLabel.backgroundColor = [UIColor cyanColor];
    [_view2 addSubview:_found_yearLabel];
    
    UILabel * label1 = [[UILabel alloc] initWithFrame:CGRectMake(10, 90, 80, 40)];
    label1.text = @"代表车款:";
    [_view2 addSubview:label1];
    
    _finestLabel = [[UILabel alloc] initWithFrame:CGRectMake(90,90,kScreenWidth - 90 , 50)];
    _finestLabel.numberOfLines = 0;
    _finestLabel.textColor = [UIColor redColor];
    
    [_view2 addSubview:_finestLabel];
    
 
    
    _descriptionLabel = [[UILabel alloc] initWithFrame:CGRectMake(10,150 ,kScreenWidth - 20 , 30)];
    _descriptionLabel.numberOfLines = -1;
   // _descriptionLabel.backgroundColor = [UIColor cyanColor];
    [_view2 addSubview:_descriptionLabel];
   
    
}


@end
